package cn.tedu.oop;

public class Test02 {
    public static void main(String[] args) {
        Fish a= new Fish();
        a.hongshao();
        a.qingzheng();
        a.youzha();
        a.length=11.505;
        a.weight=20;
        a.fishname="鲈鱼";
        System.out.println(a.fishname);
        System.out.println(a.weight);
        System.out.println(a.length);
    }
}
class Fish{
    String fishname;
    double weight;
    double length;
    public void qingzheng(){
        System.out.println("清蒸");
    }
    public void hongshao(){
        System.out.println("红烧");
    }
    public  void youzha(){
        System.out.println("油炸");
    }

}
